package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class ForumPostBase{
	boolean[] modified=new boolean[17];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public ForumPostBase(){}
	public ForumPostBase(java.lang.Long postId,java.lang.String title,java.util.Date postTime,java.lang.String contentS,java.lang.Long clickCount,java.lang.Long userId,java.lang.Integer state,java.lang.Long replies,java.lang.String contentR,java.util.Date lastModify,java.lang.String author,java.lang.String category,java.lang.String length,java.lang.Integer auditing,java.lang.Integer top,java.lang.Long groupId,java.util.Date order){
		setPostId(postId);
		setTitle(title);
		setPostTime(postTime);
		setContentS(contentS);
		setClickCount(clickCount);
		setUserId(userId);
		setState(state);
		setReplies(replies);
		setContentR(contentR);
		setLastModify(lastModify);
		setAuthor(author);
		setCategory(category);
		setLength(length);
		setAuditing(auditing);
		setTop(top);
		setGroupId(groupId);
		setOrder(order);
	}
	public void setPostId(java.lang.Long postId){
		if(postId!=null) {
			set("postId",postId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getPostId(){
		return (java.lang.Long)get("postId");
	}
	public void setTitle(java.lang.String title){
		if(title!=null) {
			set("title",title);
			this.modified[1] =true;
		}
	}
	public java.lang.String getTitle(){
		return (java.lang.String)get("title");
	}
	public void setPostTime(java.util.Date postTime){
		if(postTime!=null) {
			set("postTime",postTime);
			this.modified[2] =true;
		}
	}
	public java.util.Date getPostTime(){
		return (java.util.Date)get("postTime");
	}
	public void setContentS(java.lang.String contentS){
		if(contentS!=null) {
			set("content_s",contentS);
			this.modified[3] =true;
		}
	}
	public java.lang.String getContentS(){
		return (java.lang.String)get("content_s");
	}
	public void setClickCount(java.lang.Long clickCount){
		if(clickCount!=null) {
			set("clickCount",clickCount);
			this.modified[4] =true;
		}
	}
	public java.lang.Long getClickCount(){
		return (java.lang.Long)get("clickCount");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[5] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setState(java.lang.Integer state){
		if(state!=null) {
			set("state",state);
			this.modified[6] =true;
		}
	}
	public java.lang.Integer getState(){
		return (java.lang.Integer)get("state");
	}
	public void setReplies(java.lang.Long replies){
		if(replies!=null) {
			set("replies",replies);
			this.modified[7] =true;
		}
	}
	public java.lang.Long getReplies(){
		return (java.lang.Long)get("replies");
	}
	public void setContentR(java.lang.String contentR){
		if(contentR!=null) {
			set("content_r",contentR);
			this.modified[8] =true;
		}
	}
	public java.lang.String getContentR(){
		return (java.lang.String)get("content_r");
	}
	public void setLastModify(java.util.Date lastModify){
		if(lastModify!=null) {
			set("lastModify",lastModify);
			this.modified[9] =true;
		}
	}
	public java.util.Date getLastModify(){
		return (java.util.Date)get("lastModify");
	}
	public void setAuthor(java.lang.String author){
		if(author!=null) {
			set("author",author);
			this.modified[10] =true;
		}
	}
	public java.lang.String getAuthor(){
		return (java.lang.String)get("author");
	}
	public void setCategory(java.lang.String category){
		if(category!=null) {
			set("category",category);
			this.modified[11] =true;
		}
	}
	public java.lang.String getCategory(){
		return (java.lang.String)get("category");
	}
	public void setLength(java.lang.String length){
		if(length!=null) {
			set("length",length);
			this.modified[12] =true;
		}
	}
	public java.lang.String getLength(){
		return (java.lang.String)get("length");
	}
	public void setAuditing(java.lang.Integer auditing){
		if(auditing!=null) {
			set("auditing",auditing);
			this.modified[13] =true;
		}
	}
	public java.lang.Integer getAuditing(){
		return (java.lang.Integer)get("auditing");
	}
	public void setTop(java.lang.Integer top){
		if(top!=null) {
			set("top",top);
			this.modified[14] =true;
		}
	}
	public java.lang.Integer getTop(){
		return (java.lang.Integer)get("top");
	}
	public void setGroupId(java.lang.Long groupId){
		if(groupId!=null) {
			set("groupId",groupId);
			this.modified[15] =true;
		}
	}
	public java.lang.Long getGroupId(){
		return (java.lang.Long)get("groupId");
	}
	public void setOrder(java.util.Date order){
		if(order!=null) {
			set("order",order);
			this.modified[16] =true;
		}
	}
	public java.util.Date getOrder(){
		return (java.util.Date)get("order");
	}
}
